<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>How to build CPMake</title>
</head>
<body>
<span style="font-weight: bold;">How to build CPMake<br>
</span>updated 6-6-2005<br>
<br>
CPMake can be built in one of three ways.<br>
<ol>
  <li>Manually</li>
  <li>Using Ant</li>
  <li>Using CPMake</li>
</ol>
All steps assume that your current directory is the root of the cpmake
project<br>
<span style="font-weight: bold;">Manual steps for all platforms
(replace ';' with ':' for your platform)</span><br>
Create a build directory<br>
<span style="font-family: monospace;">&gt;mkdir build</span><br>
<br>
Rename the sample version file<br>
Rename src/cpmake/Version.sample to src/cpmake/Version.java<br>
<br>
Compile source to the build directory<br>
<span style="font-family: monospace;">&gt;javac -classpath
ext/interpreters/beanshell/bsh-1.3.0.jar;ext/interpreters/groovy/groovy-all-1.0-beta-9.jar;ext/interpreters/jython/jython.jar;ext/interpreters/rhino/js.jar
-d build -sourcepath src src/cpmake/*.java</span><br>
<br>
Create the cpmake jar file<br>
<span style="font-family: monospace;">&gt;jar -cfm cpmake.jar
manifest.txt -C build cpmake -C build org</span><br>
<br>
<span style="font-weight: bold;">Using Ant</span><br>
<span style="font-family: monospace;">&gt;ant jar</span><br>
<br>
Now that you have built it with one of the above steps you can use
CPMake to build, well CPMake!<br>
<span style="font-weight: bold;">Using CPMake</span><br>
<span style="font-family: monospace;">&gt;java -cp
cpmake.jar;ext/interpreters/beanshell/bsh-1.3.0.jar make</span><br>
<br>
When using CPMake to build itself the resulting jar is placed in the
jar directory so as to not overwrite the good one if you happen to
mess up the code.<br>
<br>
To find out what build targets are available run<br>
<span style="font-family: monospace;">&gt;java -cp
cpmake.jar;ext/interpreters/beanshell/bsh-1.3.0.jar make help</span><br>
<br>
Have fun!<br>
</body>
</html>
